package com.topcheer.common.base.service;

import com.github.pagehelper.PageInfo;
import com.topcheer.common.base.vo.PageVo;

import java.util.List;

/**
 * @author xutao
 * @Package com.topcheer.common.base.service
 * @Description: ${todo}
 * @date 2020/3/29 20:29
 */
public interface BaseService<T> {
    T selectOne(Object id);

    List<T> select(T var1);

    PageInfo<T> selectPage(PageVo vo, T entity) throws Exception;

    List<T> selectAll();

    int selectCount(T var1);

    int insert(T var1);

    int update(T var1);

    int delete(T var1);

    int deleteById(Long id);
}
